//
//  FDBContactViewController.m
//  FDBSDK
//
//  Created by curer on 1/3/16.
//  Copyright © 2016 lion. All rights reserved.
//

#import "FDBContactViewController.h"
#import "FDBSDK.h"

@interface FDBContactViewController ()

@end

@implementation FDBContactViewController

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
        self.title = NSLocalizedString(@"请输入联系方式", nil);
    }
    
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    [FDBSDK setupContact:@"123@123.com" withType:FDBSDKContactTypeEmail];
    //[FDBSDK sendFeedbackWithContent:content withEmotionLevel:0];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - action

- (IBAction)goButtonClicked:(id)sender {
    [FDBSDK sendFeedbackWithContent:self.contact
                   withEmotionLevel:0];
    
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
